package com.yangle.frame.admin.mapper;


import com.yangle.frame.MyMapper;
import com.yangle.frame.admin.entity.FrameMenu;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface FrameMenuMapper extends MyMapper<FrameMenu> {
/**
 * 批量删除
 */
@Delete("<script> delete from frame_menu where id in "
        + "<foreach item='item' index='index' collection='ids' open='(' separator=',' close=')'>"
        + "#{item}"
        + "</foreach> </script>")
public void deletes(@Param("ids") List<String> ids);

/**
 * 更新状态
 */
@Update("update frame_menu set is_Open=#{isOpen} where id=#{id}")
public void updateIsOpen(@Param("id") String id,@Param("isOpen") String isOpen);


}
